package fr.upmc.alasca.centreCalcul.interne.controleurAdmission.ports;

import fr.upmc.alasca.centreCalcul.interne.controleurAdmission.ControleurAdmission;
import fr.upmc.alasca.centreCalcul.interne.controleurAdmission.interfaces.ControleurAdmissionI;
import fr.upmc.alasca.centreCalcul.objets.DemandeChangementCoeur;
import fr.upmc.components.ComponentI;
import fr.upmc.components.ports.AbstractOutboundPort;


/**
 * @author Antoine Lavaire, Sabri Labassi, Thibaut Fleury, Ryme Fantazi
 */
public	class	ControleurAdmissionOutboundPort
extends			AbstractOutboundPort
implements		ControleurAdmissionI
{
	public	ControleurAdmissionOutboundPort
	(
		String		p_uri,
		ComponentI	p_owner
	) throws	Exception
	{
		super(p_uri, ControleurAdmissionI.class, p_owner);
		
		assert this.uri != null && this.owner instanceof ControleurAdmission;
	}


	@Override
	public	void	ajouterCoeurs
	(
		DemandeChangementCoeur	p_demandeAjoutCoeur
	) throws	Exception
	{
		((ControleurAdmissionI) this.connector).ajouterCoeurs(p_demandeAjoutCoeur);
	}
}
